package com.woniu.exception.permissions;

public enum PermissionsExceptionCode {
    PERMISSIONS_EXCEPTION_CODE_REPEAT(10001,"该资源已存在"),
    PERMISSIONS_EXCEPTION_CODE_NO_REPEAT(10001,"该资源不存在"),
    PERMISSIONS_EXCEPTION_CODE_ROLE(10001,"该角色已存在"),
    PERMISSIONS_EXCEPTION_CODE_NOT_ROLE(10002,"该角色不存在或已删除"),
    PERMISSIONS_EXCEPTION_CODE_NOT_CAN(10002,"该资源不存在或已删除");
    private Integer code;
    private String message;

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }


    PermissionsExceptionCode(Integer code, String message) {
        this.code = code;
        this.message = message;
    }
}
